<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style/css.css">
<link rel="stylesheet" type="text/css" href="style/post.css">
<script src="script/jquery-2.1.1.min.js"></script>
<script src = "script/style.js"></script> 
<script src = "script/obj.js"></script>
<script src = "script/upload.js"></script>

</head>
<body>
<div id = "menu">
	<div id = "options">
	<table>
	<td><a href = "#"> Início</a></td>
	<td><a href = "#"> Procurar</a></td>
	<td><a href = "#"> Home</a></td>
	<td id = "z"><a href = "#"> Upload Images!</a></td>
	</table>
	</div>
</div>

<div id = "upload"><div id = "fechar"><a id = "link" href = "#"> X <a></div>

<!-- Popup -->
<form>
Nome : <input type = "text">

</form>

</div>
<div id="all">

	<!--<div id = "left">
	
	</div>-->
	<div id="center">
	
	<div id = "dash">
		
	<?php 
	include "config.php";
		
	$sql = mysql_query("Select * from img");

	while ($row = mysql_fetch_array($sql)){
	date_default_timezone_set("Brazil/East");
	echo "<div id = 'post_titulo'>". $row['nome']."</div>";	
	echo "<div id = 'dados'><div id = 'c'><img class = 'teste' src = imagens/".$row['nome'].".".$row['formato']."></div>";
	echo "<div id = 'data'>".$row['hora']."</div>";
	echo "<div id = 'fix'><div id = 'texto'>";
	echo "<table width= '100%'>";
	echo "<th> Nome : </th><td>".$row['nome']."</td>";
	echo "<th> Postado por : </th><td>".$row['user_p']."</td>";
	echo "<th> Formato : </th><td>".$row['formato']."</td>";
	echo "</table>";
	echo "</div></div></div>";

}
		
	?>
	</div>
	</div>
	
	<div id="right">
		<div id = "news">
		
		</div>
		
	
</div>
<div id = "erros">
		
		</div>
</div>

</body>
</html>
